package org.zsl.mybatisplusdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.Date;

/**
 *  lombok
 * */
@Data
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString

/**
 *  mybatisplus
 * */
@TableName(value = "student")
@Schema(name="student",description = "学生类")
public class Student {

    /**
     *  mybatis resultMap
     *     mapping的一部分
     * */
    @Schema(description = "学生主键id")
    @TableId(type = IdType.AUTO)
    private Integer studentId;
    /**
     *  column=？
     * */
    @TableField(value = "username")
    private String username;
    private String password;
    private Integer age;
    private Date birthday;

}
